import 'package:aihu_getx_app/app/modules/commons/commons.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../controllers/not_found_controller.dart';

class NotFoundView extends GetView<NotFoundController> {
  const NotFoundView({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: Commons.appBar(
        title: "404",
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const SizedBox(height: 20),
            const Text(
              '哎呀呀，页面找不到咯！',
              style: TextStyle(fontSize: 20),
            ),
            const SizedBox(height: 20),
            const Text(
              '404咯！',
              style: TextStyle(fontSize: 50),
            ),
            const SizedBox(height: 20),
            const Text(
              '也可能功能还没实现吧！',
              style: TextStyle(fontSize: 20),
            ),
            const SizedBox(height: 20),
            ElevatedButton(
              onPressed: () {
                Get.back();
              },
              child: const Text("先回上一页吧？"),
            ),
          ],
        ),
      ),
    );
  }
}
